﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;
using RoadTeam.Enums;
using System.Data;

namespace RoadTeam.SysInterface
{

    public static partial class FactoryClass
    {
        private static RoadTeam.SysInterface.ISmOrgan _iSmOrgan;

        public static ISmOrgan CreateSmOrgan()
        {
            if (_iSmOrgan == null)
            {
                string className = GlobalConfig.RtSystemPath + ".SM.SmOrgan_Sys";
                _iSmOrgan = (ISmOrgan)Assembly.Load(GlobalConfig.RtSystemPath).CreateInstance(className);
            }
            return _iSmOrgan;
        }
    }



    public interface ISmOrgan
    {
        String GetOraganID(String OraganIdentifier);
        bool UpdateOrganInfo(DataTable dt);
        DataTable GetOrganTable();
        //String GetOraganIdentifier(String OrganID);
        String GetIdentitiferByID(String ID);
        DataTable GetALLOraganTable();
    }



}
